package tw.fc ;
import java.io.IOException;
import java.io.EOFException;
import tw.fc.re.*;

//************   intArrayRef.java   ****************

public class intArrayRef 
   implements DuplicableI<intArrayRef>, PrintableI, SetableI<intArrayRef>
{
   public int[] _;  //:  encorage direct access

   //-----------------------------------
   public  intArrayRef() {  _=null; }
   public  intArrayRef(int[] a) {  _=a; }
   public  intArrayRef(intArrayRef src) {  _= src._; }          

   //-----------------------------------
   public final String  toString() {  return _.toString(); }
   public final boolean equals(int[] d2) {  return (_==d2); }
   public final boolean equals(intArrayRef d2) {  return (_==d2._); }
   public final boolean equals(Object d2) {  return equals((intArrayRef)d2); }
   public final int hashCode() {  return _.hashCode();  }

   public final intArrayRef setBy(int[] a) { _=a;   return this;  }

   //[-------- implements DuplicableI  
   @Implement( DuplicableI.class )
   public final intArrayRef duplicate() {  return new intArrayRef(this);   }
   //]-------- implements DuplicableI  
   //[-------- implements PrintableI  
   @Implement( PrintableI.class )
   public final void printTo(TxOStream ooo) throws IOException {  ooo.p(_);  }
   @Implement( WidthPrintableI.class )
   public final void widthPrintTo(int w, TxOStream ooo) throws IOException {  
      ooo.p(_); 
   }
   //]-------- implements PrintableI  

   //[-------- implements DuplicableI  
   public final intArrayRef setBy(intArrayRef src) {
      _=src._;  return this;
   }
   //]-------- implements DuplicableI  

}

